//
// Created by PC on 2023/3/24.
// GESP2023.3 c++二级 第一个编程题
// *******************官方给的答案******************
//

#include <iostream>
using namespace std;
int main() {
    int n;
    cin >> n;
    int ch = 0;
    for (int i = 1; i <= n; i++) {
        for (int j = 1; j <= i; j++)
            cout << (char)('A' + (ch++) % 26);
        cout << endl;
    }
    return 0;
}